﻿{% extends "zerogrid/base.html" %} 
{% block title %}{{ title }}{% endblock %} 
{% block content %}
<!-------------Main-Content--------------->

	<div class="wrap-col">
		<!-- article list -->
		{% if blog_list %}
		{% for blog in blog_list %}
		<article class="article-focus">
			<div class="heading">
				<h2>
					<a href="{% url 'blog' blog.id%}" title="{{ blog.title }}" >{{ blog.title }}</a>
				</h2>
			</div>
			<div class="content">
				<p>
					{{ blog.summary }} <a href="{% url 'blog' blog.id%}" title="阅读更多内容">[...]</a>
				</p>

			</div>
			<div class="info">
				<p>
				{% ifequal blog.type 1%}
					<span class="icon ico-original" title="原创文章" ></span>
				{% endifequal %}
				{% ifequal blog.type 0%}
					<span class="icon ico-repost" title="转帖文章" ></span>
				{% endifequal %}
				{% ifequal blog.type 2%}
					<span class="icon ico-trans" title="翻译文章" ></span>
				{% endifequal %}
					<span class="blockspan150">日期: {{ blog.time|date:"Y-m-d" }} </span> 
					<span class="blockspan150">分类: <a href="{% url 'group' blog.classify.id %}" title="{{ blog.classify.content }}">{{ blog.classify.content }} </a></span> 
					<span  class="blockspan">标签: 
					{% for tag in blog.tags %}
						<a href="{% url 'tag' tag.id %}" title="{{tag.content}}" >{{tag.content}}</a>
					{% endfor %}	
					</span>
				</p>
			</div>
		</article>
		{% endfor%} 
		
		{% else %}
		<article>
			<div class="heading">
				<h2>NO PAGES NOW [...]</h2>
			</div>
		</article>
		{% endif %}

		<!-- end for article list -->
	</div>
<div class="wrap-col text-etnter navPage">
{% if blog_list.has_previous %}
	<span class="blockspan150 colorspan"><a href="{{query}}{{ blog_list.previous_page_number }}" title="上一页" >上一页</a></span>
{% endif %}
{% if blog_list.has_next %}
	 <span class="blockspan150 colorspan"><a href="{{query}}{{ blog_list.next_page_number}}" title="下一页"  >下一页</a></span>
{% endif %}
</div>

{% endblock %}
